package com.ky.tms.controller;


import com.ky.tms.service.ITmsUserService;
import com.ky.tms.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/tms/auth")
public class AuthController {

    @Autowired
    private ITmsUserService tmsUserService;

    @GetMapping("menu-list")
    public CommonResult menuList (HttpServletRequest request) throws Exception {

       return CommonResult.buildSuccess(tmsUserService.menuList());
    }


}
